package com.neuedu.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neuedu.bean.MedicalRecord;
import com.neuedu.bean.MedicalRecordDisease;


public interface MedicalRecordMapper extends BaseMapper<MedicalRecord> {
	//给病历首页保存信息，需要返回自动增长主键
	public int addHomeMedicalRecord(MedicalRecord mr);
	//给病历首页保存疾病关联
	public int addMedicalRecordDisease(List<MedicalRecordDisease> mrdList);
	//根据registerid修改记录
	public int updateByRegisterid(@Param("register_id")String register_id, 
			@Param("diagnosis")String diagnosis, 
			@Param("cure")String cure);
}
